import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _inherits from "@babel/runtime/helpers/esm/inherits";
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
import _applyDecoratedDescriptor from "@babel/runtime/helpers/esm/applyDecoratedDescriptor";
import _isUndefined from "lodash/isUndefined";

var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _class, _class2;

/**
 * UserInfo.js
 * @date 2018/11/23

 */
import React from 'react';
import queryString from 'query-string';
import { Bind } from 'lodash-decorators';
import { Icon, Tabs } from 'antd';
import { connect } from 'dva';
import { Content as PageContent, Header } from 'components/Page';
import intl from 'utils/intl';
import formatterCollections from 'utils/intl/formatterCollections';
import notification from 'utils/notification';
import { getCurrentOrganizationId } from 'utils/utils';
import { BKT_PUBLIC } from 'utils/config';
import styles from "./index.less?modules";
import AccountInfo from "./AccountInfo";
import SafeInfo from "./SafeInfo";
import PreferenceInfo from "./PreferenceInfo";
import UserReceiveConfig from "./UserReceiveConfig";
var UserInfo = (_dec = connect(function (_ref) {
  var userInfo = _ref.userInfo,
      loading = _ref.loading,
      user = _ref.user,
      personalLoginRecord = _ref.personalLoginRecord,
      login = _ref.login;
  return {
    user: user,
    userInfo: userInfo,
    personalLoginRecord: personalLoginRecord,
    login: login,
    avatarLoading: loading.effects['userInfo/saveAvatar'],
    editModalLoading: loading.effects['userInfo/validatePrePassword'] || loading.effects['userInfo/validatePreValidate'] || loading.effects['userInfo/validateNewEmail'] || loading.effects['userInfo/validateNewPhone'] || loading.effects['userInfo/updatePassword'],
    postCaptchaLoading: loading.effects['userInfo/postCaptcha'],
    updateRoleLoading: loading.effects['userInfo/updateRole'],
    updateCompanyLoading: loading.effects['userInfo/updateCompany'],
    updateRealNameLoading: loading.effects['userInfo/updateRealName'],
    updateTimeZoneLoading: loading.effects['userInfo/updateTimeZone'],
    updateLanguageLoading: loading.effects['userInfo/updateLanguage'],
    updateMenuLoading: loading.effects['userInfo/updateMenu'],
    updateRoleMergeLoading: loading.effects['userInfo/updateRoleMerge'],
    updateDateFormatLoading: loading.effects['userInfo/updateDateFormat'],
    updateTimeFormatLoading: loading.effects['userInfo/updateTimeFormat'],
    updateReminderFlagLoading: loading.effects['userInfo/updateReminderFlag'],
    organizationId: getCurrentOrganizationId()
  };
}), _dec2 = formatterCollections({
  code: ['ciam.userInfo', 'ciam.userReceiveConfig', 'ciam.login']
}), _dec3 = Bind(), _dec4 = Bind(), _dec5 = Bind(), _dec6 = Bind(), _dec7 = Bind(), _dec8 = Bind(), _dec9 = Bind(), _dec10 = Bind(), _dec11 = Bind(), _dec12 = Bind(), _dec13 = Bind(), _dec14 = Bind(), _dec15 = Bind(), _dec16 = Bind(), _dec17 = Bind(), _dec(_class = _dec2(_class = (_class2 = /*#__PURE__*/function (_React$Component) {
  _inherits(UserInfo, _React$Component);

  var _super = _createSuper(UserInfo);

  function UserInfo() {
    _classCallCheck(this, UserInfo);

    return _super.apply(this, arguments);
  }

  _createClass(UserInfo, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.init(); // 检查绑定三方登陆的错误

      this.checkBindError();
    }
  }, {
    key: "checkBindError",
    value: function checkBindError() {
      var _this$props$location$ = this.props.location.hash,
          hash = _this$props$location$ === void 0 ? '' : _this$props$location$;

      var _queryString$parse = queryString.parse(hash.slice(1)),
          bindErrorMessage = _queryString$parse.social_error_message;

      if (bindErrorMessage) {
        notification.warning({
          message: decodeURIComponent(bindErrorMessage)
        });
      }
    }
  }, {
    key: "init",
    value: function init() {
      var _this$props = this.props,
          organizationId = _this$props.organizationId,
          dispatch = _this$props.dispatch;
      dispatch({
        type: 'userInfo/init',
        payload: {
          organizationId: organizationId
        }
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          dispatch = _this$props2.dispatch,
          organizationId = _this$props2.organizationId,
          _this$props2$userInfo = _this$props2.userInfo,
          publicKey = _this$props2$userInfo.publicKey,
          passwordTipMsg = _this$props2$userInfo.passwordTipMsg,
          userInfo = _this$props2$userInfo.userInfo,
          roleDataSource = _this$props2$userInfo.roleDataSource,
          companyDataSource = _this$props2$userInfo.companyDataSource,
          imgFormData = _this$props2$userInfo.imgFormData,
          uploadImgName = _this$props2$userInfo.uploadImgName,
          uploadImgPreviewUrl = _this$props2$userInfo.uploadImgPreviewUrl,
          imgUploadStatus = _this$props2$userInfo.imgUploadStatus,
          _this$props2$userInfo2 = _this$props2$userInfo.modalProps,
          modalProps = _this$props2$userInfo2 === void 0 ? {} : _this$props2$userInfo2,
          _this$props2$userInfo3 = _this$props2$userInfo.openAccountList,
          openAccountList = _this$props2$userInfo3 === void 0 ? [] : _this$props2$userInfo3,
          _this$props2$userInfo4 = _this$props2$userInfo.languageMap,
          languageMap = _this$props2$userInfo4 === void 0 ? {} : _this$props2$userInfo4,
          _this$props2$userInfo5 = _this$props2$userInfo.menuMap,
          menuMap = _this$props2$userInfo5 === void 0 ? {} : _this$props2$userInfo5,
          _this$props2$userInfo6 = _this$props2$userInfo.roleMergeMap,
          roleMergeMap = _this$props2$userInfo6 === void 0 ? {} : _this$props2$userInfo6,
          _this$props2$userInfo7 = _this$props2$userInfo.dateMap,
          dateMap = _this$props2$userInfo7 === void 0 ? {} : _this$props2$userInfo7,
          _this$props2$userInfo8 = _this$props2$userInfo.timeMap,
          timeMap = _this$props2$userInfo8 === void 0 ? {} : _this$props2$userInfo8,
          _this$props2$userInfo9 = _this$props2$userInfo.reminderFlagMap,
          reminderFlagMap = _this$props2$userInfo9 === void 0 ? {} : _this$props2$userInfo9,
          currentUser = _this$props2.user.currentUser,
          _this$props2$updateCo = _this$props2.updateCompanyLoading,
          updateCompanyLoading = _this$props2$updateCo === void 0 ? false : _this$props2$updateCo,
          _this$props2$updateRo = _this$props2.updateRoleLoading,
          updateRoleLoading = _this$props2$updateRo === void 0 ? false : _this$props2$updateRo,
          _this$props2$updateRe = _this$props2.updateRealNameLoading,
          updateRealNameLoading = _this$props2$updateRe === void 0 ? false : _this$props2$updateRe,
          _this$props2$avatarLo = _this$props2.avatarLoading,
          avatarLoading = _this$props2$avatarLo === void 0 ? false : _this$props2$avatarLo,
          _this$props2$editModa = _this$props2.editModalLoading,
          editModalLoading = _this$props2$editModa === void 0 ? false : _this$props2$editModa,
          _this$props2$updateTi = _this$props2.updateTimeZoneLoading,
          updateTimeZoneLoading = _this$props2$updateTi === void 0 ? false : _this$props2$updateTi,
          _this$props2$updateLa = _this$props2.updateLanguageLoading,
          updateLanguageLoading = _this$props2$updateLa === void 0 ? false : _this$props2$updateLa,
          _this$props2$updateMe = _this$props2.updateMenuLoading,
          updateMenuLoading = _this$props2$updateMe === void 0 ? false : _this$props2$updateMe,
          _this$props2$updateRo2 = _this$props2.updateRoleMergeLoading,
          updateRoleMergeLoading = _this$props2$updateRo2 === void 0 ? false : _this$props2$updateRo2,
          _this$props2$updateRe2 = _this$props2.updateReminderFlagLoading,
          updateReminderFlagLoading = _this$props2$updateRe2 === void 0 ? false : _this$props2$updateRe2,
          _this$props2$updateDa = _this$props2.updateDateFormatLoading,
          updateDateFormatLoading = _this$props2$updateDa === void 0 ? false : _this$props2$updateDa,
          _this$props2$updateTi2 = _this$props2.updateTimeFormatLoading,
          updateTimeFormatLoading = _this$props2$updateTi2 === void 0 ? false : _this$props2$updateTi2,
          _this$props2$postCapt = _this$props2.postCaptchaLoading,
          postCaptchaLoading = _this$props2$postCapt === void 0 ? false : _this$props2$postCapt,
          _this$props2$location = _this$props2.location.state;
      _this$props2$location = _this$props2$location === void 0 ? {} : _this$props2$location;
      var _back = _this$props2$location._back,
          _this$props2$personal = _this$props2.personalLoginRecord;
      _this$props2$personal = _this$props2$personal === void 0 ? {} : _this$props2$personal;
      var _this$props2$personal2 = _this$props2$personal.dataSource,
          dataSource = _this$props2$personal2 === void 0 ? [] : _this$props2$personal2;
      return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, {
        title: intl.get('ciam.userInfo.view.title').d('个人中心')
      }), /*#__PURE__*/React.createElement(PageContent, {
        noCard: true,
        className: styles['user-info-content'],
        style: {
          minHeight: 'calc(100% - 16px)',
          marginBottom: '16px'
        }
      }, /*#__PURE__*/React.createElement(Tabs, {
        animated: false,
        tabPosition: "left",
        defaultActiveKey: _isUndefined(_back) ? 'account' : 'safe'
      }, /*#__PURE__*/React.createElement(Tabs.TabPane, {
        tab: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
          className: styles['user-info-content-tab-account']
        }, /*#__PURE__*/React.createElement(Icon, {
          className: styles['user-info-content-tab-account-icon']
        }), /*#__PURE__*/React.createElement("span", {
          className: styles['user-info-content-tab-account-info']
        }, intl.get('ciam.userInfo.view.title.main.accountInfo').d('账号信息')))),
        key: "account"
      }, /*#__PURE__*/React.createElement(AccountInfo, {
        userInfo: userInfo,
        roleDataSource: roleDataSource,
        companyDataSource: companyDataSource,
        initRoleDataSource: this.initRoleDataSource,
        onSaveRealName: this.handleRealNameSave,
        updateRealNameLoading: updateRealNameLoading,
        onDefaultCompanySave: this.handleCompanySave,
        onDefaultRoleSave: this.handleRoleSave,
        updateRoleLoading: updateRoleLoading,
        updateCompanyLoading: updateCompanyLoading // 头像
        ,
        getEnabledFile: this.getEnabledFile,
        imgFormData: imgFormData,
        uploadImgName: uploadImgName,
        uploadImgPreviewUrl: uploadImgPreviewUrl,
        imgUploadStatus: imgUploadStatus,
        avatarLoading: avatarLoading,
        organizationId: organizationId,
        dispatch: dispatch
      })), /*#__PURE__*/React.createElement(Tabs.TabPane, {
        tab: /*#__PURE__*/React.createElement("div", {
          className: styles['user-info-content-tab-safeSetting']
        }, /*#__PURE__*/React.createElement(Icon, {
          className: styles['user-info-content-tab-safeSetting-icon']
        }), /*#__PURE__*/React.createElement("span", {
          className: styles['user-info-content-tab-safeSetting-info']
        }, intl.get('ciam.userInfo.view.title.main.safeSetting').d('安全设置'))),
        key: "safe"
      }, /*#__PURE__*/React.createElement(SafeInfo, {
        publicKey: publicKey,
        loginData: dataSource,
        passwordTipMsg: passwordTipMsg,
        userInfo: userInfo,
        modalProps: modalProps,
        onPasswordUpdate: this.handlePasswordUpdate,
        dispatch: dispatch,
        openAccountList: openAccountList,
        editModalLoading: editModalLoading,
        postCaptchaLoading: postCaptchaLoading
      })), /*#__PURE__*/React.createElement(Tabs.TabPane, {
        tab: /*#__PURE__*/React.createElement("div", {
          className: styles['user-info-content-tab-preferenceSetting']
        }, /*#__PURE__*/React.createElement(Icon, {
          className: styles['user-info-content-tab-preferenceSetting-icon']
        }), /*#__PURE__*/React.createElement("span", {
          className: styles['user-info-content-tab-preferenceSetting-info']
        }, intl.get('ciam.userInfo.view.title.main.preferenceSetting').d('偏好设置'))),
        key: "preference"
      }, /*#__PURE__*/React.createElement(PreferenceInfo, {
        userInfo: userInfo,
        currentUser: currentUser,
        onTimeZoneUpdate: this.handleTimeZoneUpdate,
        initPreference: this.initPreference,
        dateMap: dateMap,
        timeMap: timeMap,
        languageMap: languageMap,
        menuMap: menuMap,
        roleMergeMap: roleMergeMap,
        reminderFlagMap: reminderFlagMap,
        onTimeFormatUpdate: this.handleTimeFormatUpdate,
        onDateFormatUpdate: this.handleDateFormatUpdate,
        onLanguageUpdate: this.handleLanguageUpdate,
        onRefreshMenu: this.handleRefresh,
        onMenuUpdate: this.handleMenuUpdate,
        onRoleMergeUpdate: this.handleRoleMergeUpdate,
        onReminderFlagUpdate: this.handleReminderFlagUpdate,
        updateTimeZoneLoading: updateTimeZoneLoading,
        updateLanguageLoading: updateLanguageLoading,
        updateMenuLoading: updateMenuLoading,
        updateRoleMergeLoading: updateRoleMergeLoading,
        updateDateFormatLoading: updateDateFormatLoading,
        updateTimeFormatLoading: updateTimeFormatLoading,
        updateReminderFlagLoading: updateReminderFlagLoading
      })), /*#__PURE__*/React.createElement(Tabs.TabPane, {
        tab: /*#__PURE__*/React.createElement("div", {
          className: styles['user-info-content-tab-receiveSetting']
        }, /*#__PURE__*/React.createElement(Icon, {
          className: styles['user-info-content-tab-receiveSetting-icon']
        }), /*#__PURE__*/React.createElement("span", {
          className: styles['user-info-content-tab-receiveSetting-info']
        }, intl.get('ciam.userInfo.view.title.main.receiveSetting').d('接收设置'))),
        key: "receive"
      }, /*#__PURE__*/React.createElement(UserReceiveConfig, null)))));
    }
  }, {
    key: "initRoleDataSource",
    value: function initRoleDataSource() {
      var dispatch = this.props.dispatch; // 获取当前登陆用户所拥有的角色

      dispatch({
        type: 'userInfo/initRoleDataSource'
      });
    }
  }, {
    key: "handleRealNameSave",
    value: function handleRealNameSave(realName) {
      var _this$props3 = this.props,
          dispatch = _this$props3.dispatch,
          _this$props3$userInfo = _this$props3.userInfo.userInfo,
          userInfo = _this$props3$userInfo === void 0 ? {} : _this$props3$userInfo;
      return dispatch({
        type: 'userInfo/updateRealName',
        payload: {
          realName: realName,
          userInfo: userInfo
        }
      });
    }
  }, {
    key: "handleCompanySave",
    value: function handleCompanySave(defaultCompanyId) {
      var _this$props4 = this.props,
          _this$props4$userInfo = _this$props4.userInfo,
          _this$props4$userInfo2 = _this$props4$userInfo.companyMap,
          companyMap = _this$props4$userInfo2 === void 0 ? {} : _this$props4$userInfo2,
          _this$props4$userInfo3 = _this$props4$userInfo.userInfo,
          userInfo = _this$props4$userInfo3 === void 0 ? {} : _this$props4$userInfo3,
          dispatch = _this$props4.dispatch,
          organizationId = _this$props4.organizationId;
      return dispatch({
        type: 'userInfo/updateCompany',
        payload: {
          defaultCompanyId: defaultCompanyId,
          defaultCompanyName: companyMap[defaultCompanyId] && companyMap[defaultCompanyId].companyName,
          userInfo: userInfo,
          organizationId: organizationId
        }
      });
    }
  }, {
    key: "handleRoleSave",
    value: function handleRoleSave(defaultRoleId) {
      var _this$props5 = this.props,
          _this$props5$userInfo = _this$props5.userInfo,
          _this$props5$userInfo2 = _this$props5$userInfo.roleMap,
          roleMap = _this$props5$userInfo2 === void 0 ? {} : _this$props5$userInfo2,
          _this$props5$userInfo3 = _this$props5$userInfo.userInfo,
          userInfo = _this$props5$userInfo3 === void 0 ? {} : _this$props5$userInfo3,
          dispatch = _this$props5.dispatch,
          organizationId = _this$props5.organizationId;
      return dispatch({
        type: 'userInfo/updateRole',
        payload: {
          defaultRoleId: defaultRoleId,
          defaultRoleName: roleMap[defaultRoleId] && roleMap[defaultRoleId].name,
          userInfo: userInfo,
          organizationId: organizationId
        }
      });
    }
  }, {
    key: "getEnabledFile",
    value: function getEnabledFile() {
      var _this$props6 = this.props,
          dispatch = _this$props6.dispatch,
          organizationId = _this$props6.organizationId;
      return dispatch({
        type: 'userInfo/fetchEnabledFile',
        payload: {
          tenantId: organizationId,
          bucketName: BKT_PUBLIC,
          directory: 'ciam02'
        }
      });
    } // safe-info

    /**
     * 更新密码
     * @param {*} payload
     */

  }, {
    key: "handlePasswordUpdate",
    value: function handlePasswordUpdate(payload) {
      var _this$props7 = this.props,
          dispatch = _this$props7.dispatch,
          _this$props7$userInfo = _this$props7.userInfo.userInfo,
          userInfo = _this$props7$userInfo === void 0 ? {} : _this$props7$userInfo;
      return dispatch({
        type: 'userInfo/updatePassword',
        payload: _objectSpread({
          userInfo: userInfo
        }, payload)
      });
    } // preference-info

  }, {
    key: "handleTimeZoneUpdate",
    value: function handleTimeZoneUpdate(_ref2) {
      var timeZone = _ref2.timeZone,
          timeZoneMeaning = _ref2.timeZoneMeaning;
      var _this$props8 = this.props,
          dispatch = _this$props8.dispatch,
          _this$props8$userInfo = _this$props8.userInfo.userInfo,
          userInfo = _this$props8$userInfo === void 0 ? {} : _this$props8$userInfo;
      return dispatch({
        type: 'userInfo/updateTimeZone',
        payload: {
          timeZone: timeZone,
          timeZoneMeaning: timeZoneMeaning,
          userInfo: userInfo
        }
      });
    }
  }, {
    key: "handleLanguageUpdate",
    value: function handleLanguageUpdate(language) {
      var _this$props9 = this.props,
          _this$props9$userInfo = _this$props9.userInfo,
          _this$props9$userInfo2 = _this$props9$userInfo.languageMap,
          languageMap = _this$props9$userInfo2 === void 0 ? {} : _this$props9$userInfo2,
          userInfo = _this$props9$userInfo.userInfo,
          dispatch = _this$props9.dispatch;
      return dispatch({
        type: 'userInfo/updateLanguage',
        payload: {
          language: language,
          languageName: languageMap[language].name,
          userInfo: userInfo
        }
      });
    }
  }, {
    key: "handleMenuUpdate",
    value: function handleMenuUpdate(menuLayout) {
      var _this$props10 = this.props,
          _this$props10$userInf = _this$props10.userInfo.userInfo,
          userInfo = _this$props10$userInf === void 0 ? {} : _this$props10$userInf,
          dispatch = _this$props10.dispatch;
      return dispatch({
        type: 'userInfo/updateMenuType',
        payload: {
          menuLayout: menuLayout,
          roleMergeFlag: userInfo.roleMergeFlag,
          userInfo: userInfo
        }
      });
    }
  }, {
    key: "handleRefresh",
    value: function handleRefresh(menuLayout) {
      var dispatch = this.props.dispatch;
      dispatch({
        type: 'user/updateCurrentUser',
        payload: {
          menuLayout: menuLayout
        }
      });
    }
  }, {
    key: "handleRoleMergeUpdate",
    value: function handleRoleMergeUpdate(roleMergeFlag) {
      var _this$props11 = this.props,
          userInfo = _this$props11.userInfo.userInfo,
          dispatch = _this$props11.dispatch;
      return dispatch({
        type: 'userInfo/updateRoleMerge',
        payload: {
          // eslint-disable-next-line no-nested-ternary
          roleMergeFlag: roleMergeFlag === '1' ? 1 : roleMergeFlag === '0' ? 0 : undefined,
          menuLayout: userInfo.menuLayout,
          userInfo: userInfo
        }
      });
    }
  }, {
    key: "initPreference",
    value: function initPreference() {
      var dispatch = this.props.dispatch;
      var lovCodes = {
        menuMap: 'CPFM.MENU_LAYOUT',
        roleMergeMap: 'CPFM.ENABLED_FLAG',
        dateMap: 'CIAM.DATE_FORMAT',
        timeMap: 'CIAM.TIME_FORMAT',
        reminderFlagMap: 'CPFM.ENABLED_FLAG'
      };
      dispatch({
        type: 'userInfo/initLovCode',
        payload: {
          lovCodes: lovCodes
        }
      });
    }
    /**
     * 变更当前用户的默认时间格式
     * @param {String} dateFormat
     * @memberof UserInfo
     */

  }, {
    key: "handleDateFormatUpdate",
    value: function handleDateFormatUpdate(dateFormat) {
      var _this$props12 = this.props,
          _this$props12$userInf = _this$props12.userInfo,
          _this$props12$userInf2 = _this$props12$userInf.dateMap,
          dateMap = _this$props12$userInf2 === void 0 ? {} : _this$props12$userInf2,
          _this$props12$userInf3 = _this$props12$userInf.userInfo,
          userInfo = _this$props12$userInf3 === void 0 ? {} : _this$props12$userInf3,
          dispatch = _this$props12.dispatch;
      return dispatch({
        type: 'userInfo/updateDateFormat',
        payload: {
          dateFormat: dateFormat,
          dateFormatMeaning: dateMap[dateFormat].meaning,
          userInfo: userInfo
        }
      });
    }
    /**
     * 变更当前用户的默认语言
     * @param {Object} timeFormat
     * @memberof UserInfo
     */

  }, {
    key: "handleTimeFormatUpdate",
    value: function handleTimeFormatUpdate(timeFormat) {
      var _this$props13 = this.props,
          _this$props13$userInf = _this$props13.userInfo,
          _this$props13$userInf2 = _this$props13$userInf.timeMap,
          timeMap = _this$props13$userInf2 === void 0 ? {} : _this$props13$userInf2,
          _this$props13$userInf3 = _this$props13$userInf.userInfo,
          userInfo = _this$props13$userInf3 === void 0 ? {} : _this$props13$userInf3,
          dispatch = _this$props13.dispatch;
      return dispatch({
        type: 'userInfo/updateTimeFormat',
        payload: {
          timeFormat: timeFormat,
          timeFormatMeaning: timeMap[timeFormat].meaning,
          userInfo: userInfo
        }
      });
    }
    /**
     * 变更首页消息弹窗提醒设置
     * @param {Object} reminderFlag
     * @memberof UserInfo
     */

  }, {
    key: "handleReminderFlagUpdate",
    value: function handleReminderFlagUpdate(reminderFlag) {
      var _this$props14 = this.props,
          userInfo = _this$props14.userInfo.userInfo,
          dispatch = _this$props14.dispatch;
      return dispatch({
        type: 'userInfo/updateReminderFlag',
        payload: {
          popoutReminderFlag: reminderFlag === '1' ? 1 : 0,
          userInfo: userInfo
        }
      });
    }
  }]);

  return UserInfo;
}(React.Component), (_applyDecoratedDescriptor(_class2.prototype, "init", [Bind], Object.getOwnPropertyDescriptor(_class2.prototype, "init"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "initRoleDataSource", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, "initRoleDataSource"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleRealNameSave", [_dec4], Object.getOwnPropertyDescriptor(_class2.prototype, "handleRealNameSave"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleCompanySave", [_dec5], Object.getOwnPropertyDescriptor(_class2.prototype, "handleCompanySave"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleRoleSave", [_dec6], Object.getOwnPropertyDescriptor(_class2.prototype, "handleRoleSave"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "getEnabledFile", [_dec7], Object.getOwnPropertyDescriptor(_class2.prototype, "getEnabledFile"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handlePasswordUpdate", [_dec8], Object.getOwnPropertyDescriptor(_class2.prototype, "handlePasswordUpdate"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleTimeZoneUpdate", [_dec9], Object.getOwnPropertyDescriptor(_class2.prototype, "handleTimeZoneUpdate"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleLanguageUpdate", [_dec10], Object.getOwnPropertyDescriptor(_class2.prototype, "handleLanguageUpdate"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleMenuUpdate", [_dec11], Object.getOwnPropertyDescriptor(_class2.prototype, "handleMenuUpdate"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleRefresh", [_dec12], Object.getOwnPropertyDescriptor(_class2.prototype, "handleRefresh"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleRoleMergeUpdate", [_dec13], Object.getOwnPropertyDescriptor(_class2.prototype, "handleRoleMergeUpdate"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "initPreference", [_dec14], Object.getOwnPropertyDescriptor(_class2.prototype, "initPreference"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleDateFormatUpdate", [_dec15], Object.getOwnPropertyDescriptor(_class2.prototype, "handleDateFormatUpdate"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleTimeFormatUpdate", [_dec16], Object.getOwnPropertyDescriptor(_class2.prototype, "handleTimeFormatUpdate"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleReminderFlagUpdate", [_dec17], Object.getOwnPropertyDescriptor(_class2.prototype, "handleReminderFlagUpdate"), _class2.prototype)), _class2)) || _class) || _class);
export { UserInfo as default };